package com.winit.config.model;

import org.springframework.data.cassandra.mapping.Column;
import org.springframework.data.cassandra.mapping.PrimaryKey;
import org.springframework.data.cassandra.mapping.Table;

import java.io.Serializable;
import java.util.Map;
@Table("config")
public class Config implements Serializable{
    @PrimaryKey
    private String id;
	//继承的上级id
    @Column("parent_id")
    private String parentId;
	//key value map
    @Column("k_v_map")
    private Map<String, String> KVMap;
    //哪个key做了哪些修改  add/update/del
    @Column("k_change_map")
    private Map<String, String> KChangeMap;
    //哪个key的value的模版引用了哪个id
    @Column("k_ref_map")
    private Map<String, String> KRefMap;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Map<String, String> getKVMap() {
        return KVMap;
    }

    public void setKVMap(Map<String, String> KVMap) {
        this.KVMap = KVMap;
    }

    public Map<String, String> getKChangeMap() {
        return KChangeMap;
    }

    public void setKChangeMap(Map<String, String> KChangeMap) {
        this.KChangeMap = KChangeMap;
    }

    public Map<String, String> getKRefMap() {
        return KRefMap;
    }

    public void setKRefMap(Map<String, String> KRefMap) {
        this.KRefMap = KRefMap;
    }
}
